package com.icebartech.base.modules.user.mapper;

import org.apache.ibatis.annotations.Param;

import com.icebartech.base.modules.user.model.AppRole;
import com.icebartech.core.modules.BaseMapper;

public interface AppRoleMapper extends BaseMapper{

	/**
	 * 通过账户id查找角色
	 * @param userId
	 * @return
	 */
	AppRole findRoleByUserId(@Param("userId") Long userId);
	
	/**
	 * 根据role_key获取角色key
	 * @param roleKey
	 * @return
	 */
	AppRole selectRoleByRoleKey(@Param("roleKey") String roleKey);
}